// 基数上传时间节点
export const baseUploadThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '年审年度',
    key: 'year'
  },
  {
    title: '参保类型',
    key: 'securityTypeName'
  },
  {
    title: '参保编号',
    key: 'securityNO'
  },
  {
    title: '基数上传时间节点',
    key: 'updatedOn',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.updatedOn) {
        times = row.updatedOn.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    }
  },
  {
    title: '创建人',
    key: 'createdName'
  },
  {
    title: '创建时间',
    key: 'createdOn',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.createdOn) {
        times = row.createdOn.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    }
  }
  // {
  //   title: '操作',
  //   width: 240,
  //   align: 'center',
  //   key: 'action',
  //   slot: 'action'
  // }
]

// 年审基数预发
export const basePretestThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '年审年度',
    key: 'year',
    width: 120
  },
  {
    title: '参保类型',
    key: 'securityTypeName',
    width: 120
  },
  {
    title: '参保编号',
    key: 'securityNO',
    width: 120
  },
  {
    title: '所属公司',
    key: 'customerName',
    width: 240
  },
  {
    title: '年审基数',
    key: 'totalAmount',
    width: 120
  },
  {
    title: '历史基数',
    key: 'historyTotalAmount',
    width: 120
  },
  {
    title: '差额',
    key: 'differenceAmount',
    width: 120
  },
  {
    title: '创建人',
    key: 'createdName',
    width: 120
  },
  {
    title: '创建时间',
    key: 'createdOn',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.createdOn) {
        times = row.createdOn.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    },
    width: 120
  },
  {
    title: '年审结果',
    key: 'auditStatusName',
    width: 120
  },
  {
    title: '退回原因',
    key: 'auditReason',
    width: 240
  },
  {
    title: '操作',
    width: 200,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]

// 年审基数预发明细
export const basePretestDetailThead = [
  // {
  //   type: 'selection',
  //   width: 60,
  //   align: 'center'
  // },
  {
    title: '参保类型',
    key: 'securityTypeName',
    width: 120
  },
  {
    title: '参保编号',
    key: 'securityNO',
    width: 150
  },
  {
    title: '所属公司',
    key: 'customerName',
    minWidth: 240
  },
  {
    title: '姓名',
    key: 'name',
    width: 120
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 240
  },
  {
    title: '年审基数',
    key: 'totalAmount',
    width: 120
  },
  {
    title: '历史基数',
    key: 'historyTotalAmount',
    width: 120
  },
  {
    title: '差额',
    key: 'differenceAmount',
    width: 160
  }
]

// 年审记录
export const yearRecordThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '参保类型',
    key: 'securityTypeName'
  },
  {
    title: '参保编号',
    key: 'securityNO'
  },
  {
    title: '所属公司',
    key: 'customerName'
  },
  {
    title: '年审基数',
    key: 'totalAmount'
  },
  {
    title: '创建人',
    key: 'createdName'
  },
  {
    title: '创建时间',
    key: 'createdOn',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.createdOn) {
        times = row.createdOn.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    },
    width: 120
  },
  {
    title: '年审结果',
    key: 'auditStatusName'
  },
  {
    title: '退回原因',
    key: 'auditReason'
  },
  {
    title: '处理人',
    key: 'auditByName'
  },
  {
    title: '处理时间',
    key: 'auditTime',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.auditTime) {
        times = row.auditTime.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    },
    width: 120
  },
  {
    title: '操作',
    width: 200,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]

// 年审基数预发明细
export const yearRecordDetailThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '参保类型',
    key: 'securityTypeName'
  },
  {
    title: '参保编号',
    key: 'securityNO'
  },
  {
    title: '所属公司',
    key: 'customerName'
  },
  {
    title: '姓名',
    key: 'name'
  },
  {
    title: '身份证号码',
    key: 'idCardNo'
  },
  {
    title: '年审基数',
    key: 'totalAmount'
  }
]

// 年审调基记录
export const adjustBaseRecordThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '参保类型',
    key: 'securityTypeName'
  },
  {
    title: '参保编号',
    key: 'securityNO'
  },
  {
    title: '所属公司',
    key: 'customerName'
  },
  {
    title: '年审基数',
    key: 'totalAmount'
  },
  {
    title: '生效时间',
    key: 'effectTime',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.effectTime) {
        times = row.effectTime.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    }
  },
  {
    title: '操作',
    width: 120,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]

// 年审调基记录明细
export const adjustBaseRecordDetailThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '参保类型',
    key: 'securityTypeName'
  },
  {
    title: '参保编号',
    key: 'securityNO'
  },
  {
    title: '所属公司',
    key: 'customerName'
  },
  {
    title: '姓名',
    key: 'name'
  },
  {
    title: '身份证号码',
    key: 'idCardNo'
  },
  {
    title: '年审基数',
    key: 'totalAmount'
  },
  {
    title: '生效时间',
    key: 'effectTime',
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.effectTime) {
        times = row.effectTime.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    },
  }
]
